package com.media.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置文件
 **/
@Component
@ConfigurationProperties(prefix = "media-captor-live")
public class MediaCaptorLiveConfig {

    /**
     * 项目的名字
     */
    private String name;

    /**
     * 项目的版本
     */
    private String version;

    /**
     * 直播流保活时长（分钟）
     */
    private String keepalive;

    /**
     * 推送的地址
     */
    private String pushIp;

    /**
     * RTMP推送的端口
     */
    private String rtmpPushPort;

    /**
     * HLS直播流推送的本地路径
     */
    private String hlsPushPath;

    /**
     * HLS端口
     */
    private String hlsPushPort;

    /**
     * 资源保存路径 (包括视频,图片)
     */
    private String resourcesSavePath;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getKeepalive() {
        return keepalive;
    }

    public void setKeepalive(String keepalive) {
        this.keepalive = keepalive;
    }

    public String getPushIp() {
        return pushIp;
    }

    public void setPushIp(String pushIp) {
        this.pushIp = pushIp;
    }

    public String getRtmpPushPort() {
        return rtmpPushPort;
    }

    public void setRtmpPushPort(String rtmpPushPort) {
        this.rtmpPushPort = rtmpPushPort;
    }

    public String getHlsPushPath() {
        return hlsPushPath;
    }

    public void setHlsPushPath(String hlsPushPath) {
        this.hlsPushPath = hlsPushPath;
    }

    public String getHlsPushPort() {
        return hlsPushPort;
    }

    public void setHlsPushPort(String hlsPushPort) {
        this.hlsPushPort = hlsPushPort;
    }

    public String getResourcesSavePath() {
        return resourcesSavePath;
    }

    public void setResourcesSavePath(String resourcesSavePath) {
        this.resourcesSavePath = resourcesSavePath;
    }

}
